package edu.sctu.java.consumer.case1;

import lombok.Data;

import java.util.function.Consumer;

@Data
public class System {
    private User user;

    public System() {
        this.user = new User();
    }

    public System userConfig(Consumer<User> consumer) {
        consumer.accept(user);
        return this;
    }

    public void execute() {
//        System.out.println(user.getName() + user.getPassword());
    }
}
